import request from '@/utils/request'

export function queryQuestion(data) {
  return request({
    url: '/customer/queryQuestion',
    method: 'post',
    data
  })
}

export function addQuestion(data) {
  return request({
    url: 'http://localhost:7000/customer/addQuestion',
    method: 'post',
    data
  })
}
export function delQuestion(questionId) {
  return request({
    url: `http://localhost:7000/customer/delQuestion/${questionId}`,
    method: 'post',
  })
}

export function updateQuestion(question) {
  return request({
    url: `http://localhost:7000/customer/updateQuestion`,
    method: 'post',
    question
  })
}

